<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{$CONF['shopTitle']['fieldValue']}后台管理中心</title>
<link href="__PUBLIC__/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="__ROOT__/Apps/Admin/View/css/AdminLTE.css" rel="stylesheet" type="text/css" />
<link href="__ROOT__/Apps/Admin/View/css/upload.css" rel="stylesheet" type="text/css" />

<!--[if lt IE 9]>
      <script src="__PUBLIC__/js/html5shiv.min.js"></script>
      <script src="__PUBLIC__/js/respond.min.js"></script>
      <![endif]-->
<script src="__PUBLIC__/js/jquery.min.js"></script>
<script src="__PUBLIC__/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/plugins/plugins/plugins.js"></script>
<script src="__PUBLIC__/plugins/formValidator/formValidator-4.1.3.js"></script>
<script src="__PUBLIC__/plugins/kindeditor/kindeditor.js"></script>
<script src="__PUBLIC__/plugins/kindeditor/lang/zh_CN.js"></script>
</head>
<style>
.ATRoot { height: 22px; line-height: 22px; margin-left: 5px; clear: both; cursor: pointer; }
.ATNode { margin-left: 5px; line-height: 22px; margin-left: 17px; clear: both; cursor: pointer; }
.Hide { display: none; }
dl.areaSelect { padding: 0 5px; display: inline-block; width: 100%; margin-bottom: 0;/*border:1px solid #eee;*/ }
dl.areaSelect:hover { border: 1px solid #E5CD29; }
dl.areaSelect:hover dd { display: block; }
dl.areaSelect dd { float: left; margin-left: 20px; cursor: pointer; }
</style>
<body class="mxc-page" style="position:relative;">
<form name="myform" method="post" id="myform" autocomplete="off" action="{:U('Admin/Shops/upShop')}">
  <input type='hidden' name="shopId" value='{$object.shopId}'/>
  <input type='hidden' name="src" value='{$src}'/>
  <table class="table table-hover table-striped table-bordered mxc-form">
    <tr>
      <th align='right'>联系人姓名：</th>
      <td><input type='text' class="form-control mxc-ipt" value='{$object.fullName}' maxLength='25' disabled="disabled" /></td>
    </tr>
    <tr>
      <th align='right'>联系人手机：</th>
      <td><input type='text' class="form-control mxc-ipt" value='{$object.phone}' maxLength='25' disabled="disabled" /></td>
    </tr>
    <tr>
      <th align='right'>详细地址：</th>
      <td><input type='text' class="form-control mxc-ipt" value='{$object.address}' maxLength='25' disabled="disabled" /></td>
    </tr>
    <if condition="$object.userType == 2 ">
      <tr>
        <th align='right'>身份证号：</th>
        <td><input type='text' name='userPhone' class="form-control mxc-ipt" value='{$object.cardNum}' maxLength='25' disabled="disabled" /></td>
      </tr>
      <tr>
        <th align='right'>身份证正反面照片：</th>
        <td><?php json_decode($object['cardImg']) ?>
          <div id="preview_Filedata"> <a href="/{$object.cardImg.0}" style="margin-right:10px;"><img id="preview" src="/{$object.cardImg.0}" ref="/{$object.cardImg.0}" height="152"></a><a href="/{$object.cardImg.1}" style="margin-right:10px;"><img id="preview" src="/{$object.cardImg.1}" ref="/{$object.cardImg.1}" height="152"></a> </div></td>
      </tr>
      <tr>
        <th align='right'>手持身份证照片：</th>
        <td><div id="preview_Filedata"> <a href="/{$object.userCardImg}" style="margin-right:10px;"><img id="preview" src="/{$object.userCardImg}" ref="/{$object.userCardImg}" height="152"></a> </div></td>
      </tr>
      <elseif condition="$object.userType == 1" />
      <tr>
        <th align='right'>企业名称：</th>
        <td><input type='text' id='userPhone' name='userPhone' class="form-control mxc-ipt" value='{$object.company}' maxLength='25' disabled="disabled" /></td>
      </tr>
      <tr>
        <th align='right'>营业执照编码：</th>
        <td><input type='text' id='shopCompany' class="form-control mxc-ipt" value='{$object.companyNum}' maxLength='25' disabled="disabled" /></td>
      </tr>
      <tr>
        <th align='right'>公司地址：</th>
        <td><input type='text' id='shopCompany' class="form-control mxc-ipt" value='{$object.companyAddress}' maxLength='25' disabled="disabled" /></td>
      </tr>
      <tr>
        <th align='right'>营业执照照片：</th>
        <td><div id="preview_Filedata"> <a href="/{$object.companyImg}" style="margin-right:10px;"><img id="preview" src="/{$object.companyImg}" ref="/{$object.companyImg}" height="152"></a> </div></td>
      </tr>
    </if>
    <tr>
      <th align='right'>是否已支付保证金：</th>
      <td><if condition="$object.depositMoney == 0">否<else />是</if></td>
    </tr>
    <tr>
      <th align='right'>保证金等级：</th>
      <td><select name="depositId">
      	<volist name="deposit" id="vo"> 
          <option value ="{$vo.id}" <if condition="$object['depositId'] == $vo['id']">selected</if>>{$vo['title']}</option>
         </if>
        </volist>
        </select>
        <input type='text' name='depositMoney' class="form-control mxc-ipt" value='{$object.depositMoney}' maxLength='25' /></td>
    </tr>
    <tr>
      <th align='right'>店铺状态：</th>
      <td><label> <input type='radio' id='shopStatus1' name='shopStatus' value='-2' 
          
          
          
          <if condition="$object['shopStatus'] ==-2 ">checked</if>
          />已停止&nbsp;&nbsp; </label>
        <label> <input type='radio' id='shopStatus0' name='shopStatus' value='-1' 
          
          
          
          <if condition="$object['shopStatus'] ==-1 ">checked</if>
          />拒绝 </label>
        <label> <input type='radio' id='shopStatus2' name='shopStatus' value='0' 
          
          
          
          <if condition="$object['shopStatus'] ==0 ">checked</if>
          />待审核 </label>
        <label> <input type='radio' id='shopStatus3' name='shopStatus' value='1' 
          
          
          
          <if condition="$object['shopStatus'] ==1 ">checked</if>
          />已审核 </label></td>
    </tr>
    <input type="hidden" name="oldShopStatus" value="{$object['shopStatus']}">
    <tr>
      <th align='right'>备注：</th>
      <td><textarea name="remark" rows="5" cols="50">{$object.remark}</textarea></td>
    </tr>
    <if condition="$object['IsAdminCreate']==1" >
    <tr>
      <th align='right'>初始信息：</th>
      <td>{$object.adminCreateInfo}</td>
    </tr>
    </if>
    <tr>
      <td colspan='2' style='padding-left:250px;'><button type="submit" class="btn btn-success">保&nbsp;存</button>
        <button type="button" class="btn btn-primary" onclick='javascript:location.href="{:U('Admin/Shops/index')}"'>返&nbsp;回</button></td>
    </tr>
  </table>
</form>
</body>
</html>